package interfaz;

import Control.EntityMan;
import javax.swing.*;

public class Menu_Principal extends JFrame {
    private final PanelConImagen p = new PanelConImagen();
    
    
    /**
     * Creates new form Menu_Principal
     */
    public Menu_Principal() {
        this.setContentPane(p);
    	this.setTitle("Menu Principal");
	this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setVisible(true);
	this.setResizable(false);
        initComponents();
        
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        
        jLabel1 = new javax.swing.JLabel();
        boton_GestionarListados = new javax.swing.JButton();
        boton_GestionarPasajeros = new javax.swing.JButton();
        boton_GestionarRespPago = new javax.swing.JButton();
        boton_OcuparHabitacion = new javax.swing.JButton();
        boton_ReservarHabitacion = new javax.swing.JButton();
        boton_CancelarReserva = new javax.swing.JButton();
        boton_Pagos = new javax.swing.JButton();
        boton_Facturar = new javax.swing.JButton();
        boton_EmitirNotaCredito = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        boton_ReservarHabitacion.setText("Reservar Habitación");
        boton_GestionarListados.setText("Gestionar Listados");
        boton_GestionarPasajeros.setText("Gestionar Pasajeros");
        boton_GestionarRespPago.setText("Gestionar Responsable de Pago");
        boton_OcuparHabitacion.setText("Ocupar Habitación");
        boton_Facturar.setText("Facturar");
        boton_EmitirNotaCredito.setText("Emitir Nota de Crédito");
        boton_Pagos.setText("Pagos");
        boton_CancelarReserva.setText("Cancelar Reserva");
        cargarActionListenters();
        posicionarElementos();
        EntityMan.getInstance();
    }
    private void cargarActionListenters(){
        
         boton_ReservarHabitacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_ReservarHabitacionActionPerformed(evt);
            }
        });
         boton_GestionarListados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_GestionarListadosActionPerformed(evt);
            }
        });
     boton_GestionarPasajeros.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_GestionarPasajerosActionPerformed(evt);
            }
        });
     
      boton_GestionarRespPago.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_GestionarRespPagoActionPerformed(evt);
            }
        });
      
       boton_OcuparHabitacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_OcuparHabitacionActionPerformed(evt);
            }
        });
       
        boton_Facturar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_FacturarActionPerformed(evt);
            }
        });
     boton_EmitirNotaCredito.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_EmitirNotaCreditoActionPerformed(evt);
            }
        });
      boton_Pagos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_PagosActionPerformed(evt);
            }
        });
      boton_CancelarReserva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boton_CancelarReservaActionPerformed(evt);
            }
        });
     
}

private void posicionarElementos(){
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(34, 34, 34)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(boton_GestionarRespPago, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(boton_GestionarPasajeros, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(boton_GestionarListados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(26, 26, 26)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(boton_CancelarReserva, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(boton_OcuparHabitacion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(boton_ReservarHabitacion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(boton_EmitirNotaCredito, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(boton_Pagos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(boton_Facturar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap(18, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(109, 109, 109)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(boton_GestionarListados)
                    .addComponent(boton_OcuparHabitacion)
                    .addComponent(boton_Pagos))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(boton_GestionarPasajeros)
                    .addComponent(boton_ReservarHabitacion)
                    .addComponent(boton_Facturar))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(boton_GestionarRespPago)
                    .addComponent(boton_CancelarReserva)
                    .addComponent(boton_EmitirNotaCredito))
                .addContainerGap(14, Short.MAX_VALUE))
        );

        pack();
}
   

    private void boton_ReservarHabitacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_ReservarHabitacionActionPerformed
        // TODO add your handling code here:
    }

    private void boton_GestionarListadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_ReservarHabitacionActionPerformed
        // TODO add your handling code here:
    }

    private void boton_GestionarPasajerosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_ReservarHabitacionActionPerformed
        GestionarPasajeros gestor=new GestionarPasajeros();
    }
     private void boton_GestionarRespPagoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_ReservarHabitacionActionPerformed
        // TODO add your handling code here:
    }
      private void boton_OcuparHabitacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_ReservarHabitacionActionPerformed
        MostrarEstadoHabitacion vent=new MostrarEstadoHabitacion();
    }
       private void boton_FacturarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_ReservarHabitacionActionPerformed
        // TODO add your handling code here:
    }
        private void boton_EmitirNotaCreditoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_ReservarHabitacionActionPerformed
        // TODO add your handling code here:
    }
         private void boton_PagosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_ReservarHabitacionActionPerformed
        // TODO add your handling code here:
    }
          private void boton_CancelarReservaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boton_ReservarHabitacionActionPerformed
        // TODO add your handling code here:
    }
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Menu_Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Menu_Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Menu_Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Menu_Principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Menu_Principal().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton boton_CancelarReserva;
    private javax.swing.JButton boton_EmitirNotaCredito;
    private javax.swing.JButton boton_Facturar;
    private javax.swing.JButton boton_GestionarListados;
    private javax.swing.JButton boton_GestionarPasajeros;
    private javax.swing.JButton boton_GestionarRespPago;
    private javax.swing.JButton boton_OcuparHabitacion;
    private javax.swing.JButton boton_Pagos;
    private javax.swing.JButton boton_ReservarHabitacion;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables

    
}